<?php

use Phinx\Migration\AbstractMigration;

class AddPostpositionColumnInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table("task")
            ->addColumn("pre_task_id", 'integer', ['null' => false, 'limit' => 11, 'default' => 0, 'comment' => '前置任务id'])
            ->save();
    }

    public function down()
    {
        $this->table("task")
            ->removeColumn("pre_task_id")
            ->save();
    }
}
